package cn.hallele.bbts.core.component.io;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * BBTSRequest
 *
 * @param <T> 泛型
 * @author anle5
 * @since 1.0-SNAPSHOT 2022/12/6 21:55 周二
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BBTSRequest<T> implements Serializable {
    @Serial
    private static final long serialVersionUID = -8872440433747799093L;

    /**
     * 请求头
     */
    @Valid
    @NotNull
    private BBTSHeader header;

    /**
     * 请求体
     */
    @Valid
    private T body;
}
